package com.lemon.tieba.user.service;


import com.lemon.common.service.BaseService;
import com.lemon.tieba.user.domain.User;

/**
 * 用户 Service
 *
 * @author ymh
 * @date 2019-3-4 17:50
 */
public interface UserService extends BaseService<User> {

    /**
     * 登录
     *
     * @param username
     * @param password
     * @return
     */
    User login(String username, String password);

    /**
     * 根据用户名查询用户
     *
     * @param username
     * @return
     */
    User selectByUsername(String username);
}
